package com.saifan.wyy_ov.ui.communitycenter;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.widget.TextView;

import com.saifan.wyy_ov.R;
import com.saifan.wyy_ov.data.bean.RoomInfoBean;
import com.saifan.wyy_ov.ui.view.BaseActivity;
import com.saifan.wyy_ov.utils.StringUtil;

/**
 * @version V1.0.0
 * @author: lomasky
 * @date: 2015-05-06 14:41
 * @descrption 房间信息
 */
public class RoominformationActivity extends BaseActivity {
    private Toolbar toolbar;
    private android.widget.TextView XMDAXMMC;
    private android.widget.TextView WYFJDAFJMC;
    private android.widget.TextView WYFJDAJZMC;
    private android.widget.TextView WYFJDAJZMC1;
    private android.widget.TextView WYFJDACX;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView();
    }


    public void setContentView() {
        setContentView(R.layout.activity_roominfomation);
        this.WYFJDACX = (TextView) findViewById(R.id.WYFJDA_CX);
        this.WYFJDAJZMC1 = (TextView) findViewById(R.id.WYFJDA_JZMC1);
        this.WYFJDAJZMC = (TextView) findViewById(R.id.WYFJDA_JZMC);
        this.WYFJDAFJMC = (TextView) findViewById(R.id.WYFJDA_FJMC);
        this.XMDAXMMC = (TextView) findViewById(R.id.XMDA_XMMC);
        this.toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        if (getRoomInfoBean() != null) {

            WYFJDACX.setText(StringUtil.returnShow(getRoomInfoBean().getWYFJDA_CX()));
            WYFJDAJZMC1.setText(StringUtil.returnShow(getRoomInfoBean().getWYFJDA_JZMC()));
            WYFJDAJZMC.setText(StringUtil.returnShow(getRoomInfoBean().getWYFJDA_JZMC()));
            WYFJDAFJMC.setText(StringUtil.returnShow(getRoomInfoBean().getWYFJDA_FJMC()));
            XMDAXMMC.setText(StringUtil.returnShow(getRoomInfoBean().getXMDA_XMMC()));


        }
    }
}
